package com.rjt.file.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.rjt.file.service.FileService;


/**  
* @comment
* @author renjiangtao 
* @date 2019年2月27日  
* @version 1.0  
*/
@Controller
@RequestMapping("file")
public class FileController {
	
	@Autowired
	private FileService fileService;
	
	@GetMapping("index")
	public String index() {
		return "file";
	}
	@PostMapping("save")
	@ResponseBody
	public String save(String phone,String num,String rate,String mail,String encryptmobile) {
		
			fileService.save(phone, num,rate,mail,encryptmobile);
			return "success";
		
	}
	
}
